-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[SELPerfilMetricaMetricas]
	-- Add the parameters for the stored procedure here
	@Id int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	SELECT P.NombrePerfilMetrica,M.idMetrica FROM [Tibet].[dbo].PERFIL_METRICA AS P , [Tibet].[dbo].METRICA AS M , [Tibet].[dbo].PERFIL_METRICA_METRICA AS PM WHERE P.IDPERFILMETRICA = PM.Fk_Perfil_Metrica_idPerfil_Metrica AND M.IDMETRICA= PM.Fk_Metrica_idMetrica AND P.idPerfilMetrica=@Id

END